import request from '@/config/axios'
/**
 * 查询签名列表
 */
export const list = () => {
  return request.get({ url: '/mailbox/mail-signature/list' })
}

/**
 * 新增签名
 */
export const createSignature = (data) => {
  return request.post({ url: '/mailbox/mail-signature/create-signature', data })
}

/**
 * 更新签名
 */
export const updateSignature = (data) => {
  return request.put({ url: '/mailbox/mail-signature/update-signature', data })
}

/**
 * 删除签名
 */
export const deletedSignature = (id) => {
  return request.delete({ url: '/mailbox/mail-signature/deleted-signature?id=' + id })
}

/**
 * 查询账号默认签名
 */
export const listAccountSignature = () => {
  return request.get({ url: '/mailbox/mail-signature/list-account-signature' })
}

/**
 * 保存账号默认签名
 */
export const saveAccountSignature = (data) => {
  return request.post({ url: '/mailbox/mail-signature/save-account-signature', data })
}

/**
 * 获取单个账号签名
 */
export const singleGetAccountSignature = (params) => {
  return request.get({ url: '/mailbox/mail-signature/single-get-account-signature', params })
}
